<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<button id="policbutton" onclick="test()">我是政策页</button>
</body>
<script src="./shandong3d/examples/js/jquery.js"></script>
<script>

    function test(){
        $.ajax({
            type:"GET",
            contentType:"application/x-www-form-urlencoded",
            url:"http://localhost:8089/feiyi/getId",
            data:{
                "id":66,
            },

            xhrFields:{withCredentials:true},
            success:function (data) {
                console.log(data)
            },
            //失败的回调函数
            error:function (data) {
                console.log(data)
            }
        });

        alert('成功');
    }

</script>
</html>